package models

import (
	"api01/util"
	_ "github.com/go-sql-driver/mysql"
)

func init() {

	//初始化orm
	err := util.OrmInit()
	if err != nil {
		util.Log.Error(err.Error())
		util.OutPutError(404,"orm初始化失败")
	}
	//orm.RegisterDataBase("default", "mysql", "root:123456@/beego?charset=utf8", 30)

}
